
project(HelperFunc LANGUAGES CXX)







find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)


find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core)


set(INC_LIST 
	 "include/helper_func_global.h"
     "include/impfilehelper.h"
	 "include/notifyeventhelper.h"
	 )

message(STATUS "[${PROJECT_NAME}-INC_LIST:] ${INC_LIST}")

set(SRC_LIST 
	"src/impfilehelper.cpp"
	"src/notifyeventhelper.cpp"
 
 
 )


message(STATUS "[${PROJECT_NAME}-SRC_LIST:] ${SRC_LIST}")

set(RES_LIST 
	
	)

message(STATUS "[${PROJECT_NAME}-RES_LIST:] ${RES_LIST}")

add_library(${PROJECT_NAME} SHARED ${INC_LIST}  ${SRC_LIST} ${RES_LIST})

target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Core)

target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)



#输出文件路径
include(OutPutDirConfig)

#编译库输出宏
target_compile_definitions(${PROJECT_NAME} PRIVATE HELPER_FUNC_LIBRARY)